home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / DU Folder / DU Selection FW / Includes / DUListFrame.h < prev    next >
Encoding:
Text File  |  1995-10-26  |  1.5 KB  |  49 lines  |  [TEXT/MPS ]

  1. //    Copyright © 1995 Apple Computer, Inc. All rights reserved.
  2. //    Release Version:    $ 1.0 d11 $
  3.  
  4. #ifndef DULISTFRAME_H
  5. #define DULISTFRAME_H
  6.  
  7. //=======================================================================
  8. // ----- Framework Includes -----
  9. #ifndef FWFRAME_H
  10. #include <FWFrame.h>        // FW_CFrame
  11. #endif
  12.  
  13. //=======================================================================
  14. class FW_CLASS_ATTR DU_CListPart;
  15. class FW_CLASS_ATTR DU_MSelectable;
  16. class FW_CLASS_ATTR DU_CListSelection;
  17.  
  18. //=======================================================================
  19. class FW_CLASS_ATTR DU_CListFrame : public FW_CFrame {
  20. public:
  21.                         DU_CListFrame(Environment* ev, 
  22.                                     ODFrame* odFrame, 
  23.                                     FW_CPresentation* presentation, 
  24.                                     DU_CListPart* datasavePart);
  25.     virtual             ~DU_CListFrame();
  26. protected:
  27. // overrides
  28.     virtual void        Draw(Environment *ev, 
  29.                              ODFacet* odFacet, 
  30.                              ODShape* invalidShape);
  31.     virtual FW_Boolean    DoAdjustMenus(Environment* ev,
  32.                                       FW_CMenuBar* menuBar, 
  33.                                       FW_Boolean hasMenuFocus,
  34.                                       FW_Boolean isRoot);
  35.     virtual FW_Boolean    DoMenu(Environment* ev,
  36.                                const FW_CMenuEvent& theMenuEvent);
  37.     virtual FW_Boolean    DoMouseDown(Environment* ev, 
  38.                                     const FW_CMouseEvent& theMouseEvent);
  39. // new members
  40.     virtual void        SelectItemWithMouse(Environment *ev, 
  41.                                     const FW_CMouseEvent& theMouseEvent);
  42. private:
  43.     DU_CListPart*        fListPart;
  44.     DU_CListSelection*    fSelection;
  45. };
  46.  
  47. //=======================================================================
  48. #endif
  49.